Repository navigation
Conversation
This was referenced Dec 2, 2026
hidb4ai
reviewed
Dec 2, 2026
hidb4ai
left a comment
Contributor
There was a problem hiding this comment.
[P2] Synchronize and qualify the Desktop contract before merging. I reproduced the two acknowledged failures in tests/test_desktop_contract.py::test_desktop_contract_identity_matches_openapi: both desktop/ui/src/generated/operations.ts and desktop/src-tauri/src/transport/operations.json retain the old OpenAPI digest after the organization API additions. Generate the matching Desktop manifests and complete the compatibility qualification described in #2101; the current head does not pass this repository contract gate.
Collaborator
|
The affected modules are Core. @hidb4ai, please coordinate follow-up. Core: @hidb4ai @frf12 @Fengzdadi @beatenevo. Please coordinate the review of the affected changes. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue or RFC does this PR close?
Implements the Server portion of RFC #2857.
Rationale for this change
Let Server replicas share organization accounts, membership, and Scope authorization.
What changes are included in this PR?
POST /v1/org-bootstrapissues the first code.POST /v1/org-registrationredeems a code for an account and personal Scope.GET /v1/my/org-sessionresolves the active membership.PUT /v1/my/account-tokenrotates the account credential./v1/orgs/{slug}manages members, invitations, teams, and projects. Existing Access routes grant and revoke project Scope roles.Are there any user-facing changes?
Each logical database hosts one organization. Deployment credentials and account tokens have distinct permissions. Background processing uses its service grant, and portable restore requires matching Scope ownership.
How was this change tested?
108 local tests passed for Server flows, API contracts, and schema migrations. Before merge, sync and qualify the Desktop contract for the new OpenAPI digest (see #2101). Two Desktop digest checks currently fail.
AI usage statement
OpenAI Codex assisted with implementation, tests, and PR preparation.